package com.ruoyi.system.service.mongo;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.mongodb.Teacher;
import com.ruoyi.system.mongo.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yangtao
 * @since 2021-03-02 17:10
 */
@Service
public class TeacherServiceImpl implements  TeacherService{

    @Autowired
    TeacherDao teacherDao;

    @Override
    public PageInfo<Teacher> teacherList(String realname, String phoneNum, String schoolId, Integer pageNum, Integer pageSize) {
        return teacherDao.teacherList(realname, phoneNum, schoolId,pageNum,pageSize);
    }
}
